<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/res/third/bootstrap3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="/res/common/js/jquery.1.9.1.min.js" type="text/javascript"></script>
<script src="/res/third/artDialog/jquery.artDialog.js" type="text/javascript"></script>
<script src="/res/third/validate/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">
	function sosuo() {
		var lpath = location.pathname;
		$("#soform").attr("action", lpath + "?pageNo=" + 1);

		$("#soform").submit();
	}
</script>
<style type="text/css">
		.excelbtn{display: inline-block;height: 100%;width: 100px;background-color:#38A4C7;color: #fff;text-align: center;line-height: 35px;cursor: pointer;border-radius:5px;}
</style>
</head>

<body>
	<div class="panel panel-info panel-content">
		<div class="panel-heading">
		<!-- 
			<button style="float: right" type="button" onclick="addrecommendCompany()" class="btn btn-info">
				<span class="glyphicon glyphicon-plus"></span>
				&nbsp;新增规则
			</button>
			 -->
			<form id="soform" method="post">
				<input type="hidden" name="so_companyId" value="${so_companyId!}">
				<table>
					<tr>
						<td class="w80" style="padding-top: 5px">
							<label for="companyname" class="center-block">规则标题：</label>
						</td>
						<td class="w150 ">
							<input type="text" class="form-control" name="so_title" value="${so_title!}" id="so_search" placeholder="请输入标题" data-options="">
						</td>
						<!--  
						<td class="w80" style="padding-top: 5px; padding-left: 10px">
							<label for="companyname" class="center-block">推荐类型：</label>
						</td>
						<td class="w120 ">
							<select class="form-control" name="so_upToIndex">
							    <option value="" [#if !so_upToIndex?? || so_upToIndex=='']selected="selected"[/#if]>全部</option>
								<option value="0" [#if so_upToIndex?? && so_upToIndex=='0']selected="selected"[/#if]>不推荐</option>
								<option value="1" [#if so_upToIndex?? && so_upToIndex=='1']selected="selected"[/#if]>推荐</option>
							</select>
						</td>
						-->
						<td style="padding-left: 10px">
							<div class="input-group">
								<span class="input-group-btn">
									<button class="btn btn-default" type="button" onclick="sosuo()">搜索</button>
								</span>
							</div>
						</td>
						<td style="padding-left: 10px;font-size: 12px;font-family: inherit;color: inherit;">
							<span class="excelbtn"  onclick="torecordrule()">积分规则</span>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<table class="table table-hover table-bordered table-striped table-condensed">
			<thead>
				<tr>
					<th width="10%">序号</th>
					<th width="15%">用户</th>
					<!--  
					<th width="15%">规则编码</th>
					-->
					<th width="15%">规则标题</th>
					<th width="15%">规则描述</th>
					<th width="7%">积分分值</th>
					<th width="10%">分值操作</th>
					<th width="10%">操作人 </th>
					
					<th width="18%">操作时间</th>
					
				</tr>
			</thead>
			[#list pagination.list as record]
			<tr>
				<td align="center">${record_index + 1}</td>
				<td align="center">${record.mobile!record.email}</td>
				<td align="center">${record.ruleTitle!}</td>
				<td align="center">${record.ruleDescr!}</td>
				<td align="center">${record.score!}</td>
				<td align="center">[#if record.operateType==1]加分[#else]减分[/#if]</td>
				<td align="center">${record.adminName!}</td>
				<td align="center">${(record.createtime?string("yyyy-MM-dd HH:mm:ss"))!}</td>
				<!--  
				<td align="center">
					<button type="button" class="btn btn-danger btn-xs delbtn" onclick="deleteCP('${record.id!}')">删除</button>
				</td>
				-->
			</tr>
			[/#list]
		</table>
		<div class="panel-footer">[@fenye p = pagination form = 'infoForm' /]</div>
	</div>
	
</body>
</html>
<script type="text/javascript">
	
	function torecordrule(){
		top.addTab("积分规则", "/integral/i_recordrule_list.do");

	}
	
	
</script>